package net.zdreamer.geracomium.ui.home;

import net.zdreamer.geracomium.ui.BaseActivity;
import net.zdreamer.geracomium.ui.more.PersonalInformationActivity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.geracomium.R;

public class ResultOfAssessActivity extends BaseActivity implements OnClickListener {
	ImageView back, next;
	TextView title, result, suggest;

	@Override
	protected int getContentView() {
		return R.layout.activity_result_of_assess;
	}

	@Override
	protected void init() {
		back = (ImageView) findViewById(R.id.back);
		next = (ImageView) findViewById(R.id.share);
		title = (TextView) findViewById(R.id.title_content);
		result = (TextView) findViewById(R.id.result_of_assess);
		suggest = (TextView) findViewById(R.id.suggest_of_assess);
	}

	@Override
	protected void initViews() {
		next.setImageResource(R.drawable.seletor_skip);
		next.setVisibility(View.VISIBLE);
		final AlertDialog alertDialog ;
		AlertDialog.Builder builder = new AlertDialog.Builder(this);
		alertDialog = builder.create();
		alertDialog.show();
		Window window = alertDialog.getWindow();
		window.setContentView(R.layout.dialog_result);
		window.findViewById(R.id.okkkkk).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				alertDialog.dismiss();
			}
		});
	}

	@Override
	protected void initListener() {
		back.setOnClickListener(this);
		next.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.back:
			finish();
			break;
		
		case R.id.share:
			Intent intent = new Intent(this, PersonalInformationActivity.class);
			startActivity(intent);
			break;

		default:
			break;
		}
	}

}
